package com.example.demo.domain;

/**
 * @author kisofdeath
 * @date 2022/5/11 12:38
 */
public class Result<T> {
	private String code;
	private T data;

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public T getData() {
		return data;
	}

	public void setData(T data) {
		this.data = data;
	}

	public static <T> Result<T> ok(T data) {
		Result<T> r = new Result<>();
		r.setData(data);
		return r;
	}
}
